package com.moyun.common.event;


import com.moyun.common.event.syssetting.SysSettingEventSource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * SysSetting系统设置
 * 事件监听，用于业务解耦(创建事件监听器)
 */
@Slf4j
@Component
public class SysSettingEventListener {



    /**
     * 系统设置，更新/保存事件监听
     * 更新sysSettingMap、OpenAPI限流
     */
    @EventListener(SysSettingEventSource.class)
    @Order(1)
    public void sysSettingSaveRegisterListener(SysSettingEventSource eventSourceEvent){
        // 处理收到事件通知后的业务逻辑
        //更新系统设置时同步更新公用静态集合sysSettingMap

    }
}
